package com.itheima.reggie.service;

import com.github.pagehelper.PageInfo;
import com.itheima.reggie.entity.Category;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Transactional
public interface CategoryService {

    void insertNewCategory(Category category);

    PageInfo<Category> selectByPage(int page, int pageSize);

    String deleteById(String categoryId);

    void updateById(Category category);

    List<Category> selectByType(Integer type);

    List<Category> selectAll();
}
